﻿@namespace MudBlazor
@inherits MudComponentBase

<div @attributes="UserAttributes" class="@ContainerClass" @onmouseenter="@HandleMouseOver" @onmouseleave="@HandleMouseOut" @onfocusout="@HandleMouseOut">
	@ChildContent
	@if (TooltipContent != null || string.IsNullOrEmpty(Text) == false)
	{
		<MudPopover Open="_isVisible" Duration="@Duration" Delay="@Delay" AnchorOrigin="@_anchorOrigin" TransformOrigin="@_transformOrigin" Class="@Classname" Paper="false">
				@if (TooltipContent != null)
				{
					@TooltipContent
				}
				else if (!String.IsNullOrEmpty(Text))
				{
					@Text
				}
		</MudPopover>
	}
</div>
